/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package entitys;

/**
 * 购物车类
 * @author Administrator
 */
public class Carts {
    private int id;
    private Users user;
    private Products product;
    private int count;

    public Carts(int id, Users user, Products product, int count) {
        this.id = id;
        this.user = user;
        this.product = product;
        this.count = count;
    }
    
    public Carts(){}

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public Products getProduct() {
        return product;
    }

    public void setProduct(Products product) {
        this.product = product;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
    
    
}
